<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://beta.mamsy.ru/" />
<title>reviews</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">reviews</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>/info/reviews</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=reviews_type_review</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=reviewsText</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=input.default_button</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>id=reviews_type_question</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>css=input.default_button</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=p.error</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isTextPresent('Notice')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Error')==false &amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('Exception')==false&nbsp;&nbsp;&amp;&amp;&nbsp;&nbsp;selenium.isTextPresent('vps_core')==false) {} else {alert('Error!')}</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>id=reviews_type_review</td>
	<td></td>
</tr>
<tr>
	<td>storeElementPresent</td>
	<td>css=p.error</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>css=input.default_button</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=p.error</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=reviewsText</td>
	<td>TEST</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=input.default_button</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=p.error</td>
	<td></td>
</tr>
<tr>
	<td>storeEval</td>
	<td>if (selenium.isElementPresent('css=img[alt=&quot;удалить&quot;]')==true){nextMove=&quot;del&quot;} else {nextMove=&quot;nodel&quot;}</td>
	<td>openPage</td>
</tr>
<tr>
	<td>gotolabel</td>
	<td>${openPage}</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>del</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=img[alt=&quot;удалить&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=img[alt=&quot;удалить&quot;]</td>
	<td></td>
</tr>
<tr>
	<td>label</td>
	<td>nodel</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=p.error</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>id=reviewsText</td>
	<td>TEST_Question</td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=input.default_button</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>css=input.default_button</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>css=p.error</td>
	<td></td>
</tr>
</tbody></table>
</body>
</html>
